# Project: Project1
# Makefile created by Dev-C++ 5.11

CPP      = g++
CC       = gcc
WINDRES  = windres.exe
OBJ      = main.o geometries/cpp/point.o geometries/cpp/line.o geometries/cpp/cycle.o geometries/cpp/solution.o geometries/cpp/triangle.o algebra/linear/cpp/array.o
LINKOBJ  = main.o geometries/cpp/point.o geometries/cpp/line.o geometries/cpp/cycle.o geometries/cpp/solution.o geometries/cpp/triangle.o algebra/linear/cpp/array.o
LIBS     = -static-libgcc
INCS     = 
CXXINCS  = 
BIN      = Project1
CXXFLAGS = $(CXXINCS) -std=gnu++11
CFLAGS   = $(INCS) -std=gnu++11
RM       = rm.exe -f

.PHONY: all all-before all-after clean clean-custom

all: all-before $(BIN) all-after

clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)

main.o: main.cpp
	$(CPP) -c main.cpp -o main.o $(CXXFLAGS)

geometries/cpp/point.o: geometries/cpp/point.cpp
	$(CPP) -c geometries/cpp/point.cpp -o geometries/cpp/point.o $(CXXFLAGS)

geometries/cpp/line.o: geometries/cpp/line.cpp
	$(CPP) -c geometries/cpp/line.cpp -o geometries/cpp/line.o $(CXXFLAGS)

geometries/cpp/cycle.o: geometries/cpp/cycle.cpp
	$(CPP) -c geometries/cpp/cycle.cpp -o geometries/cpp/cycle.o $(CXXFLAGS)

geometries/cpp/solution.o: geometries/cpp/solution.cpp
	$(CPP) -c geometries/cpp/solution.cpp -o geometries/cpp/solution.o $(CXXFLAGS)

geometries/cpp/triangle.o: geometries/cpp/triangle.cpp
	$(CPP) -c geometries/cpp/triangle.cpp -o geometries/cpp/triangle.o $(CXXFLAGS)

algebra/linear/cpp/array.o: algebra/linear/cpp/array.cpp
	$(CPP) -c algebra/linear/cpp/array.cpp -o algebra/linear/cpp/array.o $(CXXFLAGS)
